import 'package:flutter/material.dart';

main(List<String> args) {
  runApp(MaterialApp(
    home: TestPage(),
  ));
}

class MyClipper extends CustomClipper<Rect> {
  @override
  Rect getClip(Size size) => Rect.fromLTWH(10.0, 15.0, 40.0, 30.0);

  @override
  bool shouldReclip(CustomClipper<Rect> oldClipper) => false;
}

class TestPage extends StatelessWidget {
  const TestPage({Key key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Container(
        color: Colors.black,
        child: Center(
          child: Container(
            color: Colors.white,
            height: 300,
            width: 300,
            alignment: Alignment.center,
            child: GestureDetector(
              onTap: () {
                print('tap');
              },
              child: Container(
                color: Colors.red,
                child: ExpansionTile(
                  title: Text('标题'),
                  children: <Widget>[
                    Text('子1'),
                    Text('子2'),
                    Text('子3'),
                    Text('子4'),
                    Text('子5'),
                    Text('子5'),
                  ],
                ),
              ),
              // child: DecoratedBox(
              //   decoration: BoxDecoration(color: Colors.red),
              //   child: ClipOval(
              //     // clipper: MyClipper(),

              //     clipBehavior: Clip.antiAlias,
              //     child: Container(
              //       height: 200,
              //       width: 200,
              //       color: Colors.blue,
              //     ),
              //   ),
              // ),
            ),
          ),
        ),
      ),
    );
  }
}
